package com.zhyl.demo.service;

import com.zhyl.demo.entity.User;

import java.util.ArrayList;

public interface UserService {
    User login(String username, String password);

    Boolean register(User user);

    User selectByUsername(String username);

    ArrayList<User> getAdminUser();

    Boolean uploadFace(User user);

    Boolean deleteUser(int userId);

    /**
     * 生成随机8位数账号
     * @return
     */
    long getRandomNumber();

    User getUserInfo(Integer userId);

    Boolean updateUser(User user);
}
